<?php
include('../../inc/config.php');
include(_DOC_ROOT.'/inc/constants.php');
include(_DOC_ROOT.'/inc/functions.php');
include(_DOC_ROOT.'/language/english.php');
include(_DOC_ROOT.'classes/CommonUtility/Calendar.php');
 class MyCalendar extends Calendar {
	  function getCalendarLink($month, $year) {
		   // Redisplay the current page, but with some parameters // to set the new month and year 
		   $s = 'modules/ajax/calendar.php'; 
		   return "$s?month=$month&year=$year"; 
		} 
	}
$d = getdate(time());
$month = ($_REQUEST['month'])?$_REQUEST['month']:$d["mon"];
$year = ($_REQUEST['year'])?$_REQUEST['year']:$d["year"];
$cal = new MyCalendar; 
echo $cal->getMonthView($month, $year); 